
package com.be.beadmin.design.repository;

import com.be.beadmin.design.entity.BopTotal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author Jiahao Liu
* @date 2023-02-22
**/
public interface BopTotalRepository extends JpaRepository<BopTotal, String>, JpaSpecificationExecutor<BopTotal> {

    BopTotal findBopTotalByIdAndDelete(String id, Integer delete);

    BopTotal findBopTotalById(String id);

    BopTotal findBopTotalByBopCode(String bopCode);
    BopTotal findBopTotalByBopCodeAndDelete(String bopCode,int delete);
    List<BopTotal> findAllByDelete(Integer delete);

    List<BopTotal> findBopTotalByBopNameLikeAndDelete(String bopName, Integer delete);


    BopTotal findBopTotalByBopNameAndDelete(String bopName, Integer delete);
    List<BopTotal> findAllByIsEnabledAndDelete(Integer isEnabled,Integer delete);


}